package net.marktruran.decorators;

import net.marktruran.components.*;

/**
 * A simple test of the enchantment package.
 *
 * @author Mark Truran <me@marktruran.net> 
 */
public class TestEnchantments {

    /**
     * Entry point. 
     * 
     * @param args None expected.
     */
    public static void main(String[] args) {
        
        // A dagger with stun enchantment
        Weapon dagger = new Dagger();
        dagger = new Stun(dagger);
        dagger.damage();
        System.out.println("\n");
        
        // A mace with flame and stun enchantments
        Weapon mace = new Mace();
        mace = new Stun(mace);
        mace = new Flame(mace);
        mace.damage();
        System.out.println("\n");
        
        // A sword with flame, stun and poison. OMG!
        Weapon sword = new Broadsword();
        sword = new Stun(sword);
        sword = new Flame(sword);
        sword = new Poison(sword);
        sword.damage();  
    }
}
